<%@ page import="com.sun.xml.internal.ws.commons.xmlutil.Converter" %><%--
  Created by IntelliJ IDEA.
  User: drophair
  Team: 深藏blow
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>身份验证</title>
    <script src="/js/jquery-3.4.1.min.js"></script>
    <link rel="stylesheet" href="/css/bootstrap.min.css">
</head>
<body>
你好：
<%
    String uname = "", upasswd = "";
    String uwho = "";
    Cookie[] cookies = request.getCookies();
    for (Cookie cookie : cookies) {
        if (cookie.getName().equals("login_name")) {
            uname = cookie.getValue();
        }
        if (cookie.getName().equals("login_who")) {
            uwho = cookie.getValue();
//            uwho= Integer.parseInt(cookie.getValue());
        }
    }
%>
<%=uname%>，
<%
    if (uwho.equals("1")) {
%>
<%
} else if (uwho.equals("0")) {
%>
<a href="/admin/index.jsp">管理员平台</a>
<%
    }
%>
</body>
</html>
